<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>更新书籍</title>
    <link rel="stylesheet" href="/static/css/update.css">
</head>
<body>
<h2 style="margin: auto;text-align: center">更新书籍</h2>
<div style="margin:auto;text-align: center">
    <form action="/bookupdate" method="post">
        编 号：<input name="id" type="text" th:value="${book.id}" readonly="readonly">
        <br>
        书 名：<input type="text" th:value="${book.title}" name="title">
        <br>
        作 者：<input type="text" th:value="${book.author}" name="author">
        <br>
        书 号：<input type="text" th:value="${book.isbn}" name="isbn">
        <br>
        出版商：<input type="text" th:value="${book.publisher}" name="publisher">
        <br>
        出版日期：<input type="date" th:value="${#dates.format(book.publish_date, 'yyyy-MM-dd')}" name="publish_date">
        <br>
        价 格：<input type="text" th:value="${book.price}" name="price">
        <br>
        库 存：<input type="text" th:value="${book.stock}" name="stock">
        <br>
        <button type="submit">提 交</button>
    </form>
</div>
</body>
</html>